// ============================== 导入依赖 ============================== //

const STORE = {}
const imports = require.context('./', false, /^\.\/[A-Z]+\.js$/)

imports.keys().forEach((path) => {
  const matched = /[A-Z]+/.exec(path)
  if (matched) STORE[matched[0]] = imports(path).default
})

// ============================== 导出仓库 ============================== //

export default STORE
